package db.dao;

import java.util.HashSet;
import java.util.Set;

/**
 * TeaCourse entity. @author MyEclipse Persistence Tools
 */

public class TeaCourse implements java.io.Serializable {

	// Fields

	private TeaCourseId id;
	private Teacher teacher;
	private Course course;
	private String teaname;
	private String coursename;
	private Set stuCourses = new HashSet(0);

	// Constructors

	/** default constructor */
	public TeaCourse() {
	}

	/** minimal constructor */
	public TeaCourse(TeaCourseId id, Teacher teacher, Course course) {
		this.id = id;
		this.teacher = teacher;
		this.course = course;
	}

	/** full constructor */
	public TeaCourse(TeaCourseId id, Teacher teacher, Course course, String teaname, String coursename,
			Set stuCourses) {
		this.id = id;
		this.teacher = teacher;
		this.course = course;
		this.teaname = teaname;
		this.coursename = coursename;
		this.stuCourses = stuCourses;
	}

	// Property accessors

	public TeaCourseId getId() {
		return this.id;
	}

	public void setId(TeaCourseId id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Course getCourse() {
		return this.course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public String getTeaname() {
		return this.teaname;
	}

	public void setTeaname(String teaname) {
		this.teaname = teaname;
	}

	public String getCoursename() {
		return this.coursename;
	}

	public void setCoursename(String coursename) {
		this.coursename = coursename;
	}

	public Set getStuCourses() {
		return this.stuCourses;
	}

	public void setStuCourses(Set stuCourses) {
		this.stuCourses = stuCourses;
	}

}